package cn.wolfcode.luowowo.search.service;

import cn.wolfcode.luowowo.search.query.DestinationSearchQuery;
import cn.wolfcode.luowowo.search.template.DestinationDetailTemplate;
import cn.wolfcode.luowowo.search.vo.StatisVO;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface IDestinationDetailTemplateSearchService {
    /**
     * 添加和更新
     * @param destinationDetailTemplate
     */
    void saveOrUpdate(DestinationDetailTemplate destinationDetailTemplate);

    /**
     * 根据主题类型分组
     * @param typeWholeyear
     * @return
     */
    List<StatisVO> groupByTypeId(Long typeWholeyear);

    /**
     * 查询地点的结果
     * @param map
     * @return
     */
    Page searchData(Map<String, Long> map, DestinationSearchQuery qo);
}
